
#include <winsock2.h>
#include "inetaddr.h"

namespace compat
{
	class tls
	{
	public:
		template < typename type >
		tls ( type * value ) { }
		~tls ( void ) { }

	private:
		
	};

	
}


InetAddr::InetAddr ( void )
{

}


InetAddr::InetAddr ( int family, const char * address, unsigned short port )
{

}


InetAddr::~InetAddr ( void )
{

}


short InetAddr::family ( void ) const
{
	if ( this->sockaddr_ == NULL )
		return -1 ;

	return this->sockaddr_->sa_family ;
}

compat::tls < int >	var ;

const char * InetAddr::address ( void ) const
{
	var =  10 ;	// thread 1
	var =  10 ;	// thread 2



	return 0 ;
}


unsigned short InetAddr::port ( void ) const
{
	return 0 ;
}


const sockaddr * InetAddr::sockaddr ( void ) const
{
	return NULL ;
}

